package drds.data_migrate.vo;

import drds.common.Author;
import drds.data_migrate.Authors;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * 全部按照分片表进行拆分,该处不涉及具体某个表和连接信息.由具体的某个ConnectionInfo进行管理.
 */
@Author(name = Authors.LI_YANG)
public class JobConfig
{

    @Setter
    @Getter
    private long jobId;

    @Setter
    @Getter
    private int jobSleepInterval;
    @Setter
    @Getter
    private int tableNumberMark;
    @Setter
    @Getter
    private int jobReportInterval;

    @Setter
    @Getter
    private List<TaskConfig> taskConfigList;


    //
    @Setter
    @Getter
    private String jdbcUrl;
    @Setter
    @Getter
    private String username;
    @Setter
    @Getter
    private String password;

    @Setter
    @Getter
    private String tableName;


    @Setter
    @Getter
    private String columnNamesString;

    @Setter
    @Getter
    private List<String> columnNameList;
    //切分键Segmentation key  切分列 partition
    @Setter
    @Getter
    private String splitColumnName;

    @Setter
    @Getter
    private String primaryKeyType;
    @Setter
    @Getter
    private String where;

    @Setter
    @Getter
    private String querySql;

    @Setter
    @Getter
    private List<String> postSqlList;

    @Setter
    @Getter
    private List<ConnectionInfo> connectionInfoList;

}
